<%@ page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="html" uri="http://struts.apache.org/tags-html"%>
<%@taglib prefix="bean" uri="http://struts.apache.org/tags-bean"%>
<%@taglib prefix="logic" uri="http://struts.apache.org/tags-logic" %>

<html:form action="/changePassword" method="POST">

	<html:messages id="msg" message="true" property="wrongPassword">
		<div class="alert alert-danger">
			<bean:write name="msg"/>
		</div>
	</html:messages>
	<html:messages id="msg" message="true" property="password">
		<div class="alert alert-danger">
			<bean:write name="msg"/>
		</div>
	</html:messages>
	<h3>
		<bean:message key="common.password.old"/>
		<html:password property="oldPassword"></html:password>
	</h3>

	<h3>
		<bean:message key="common.password.new"/>
		<html:password property="newPassword"></html:password>
	</h3>
	
	<html:messages id="msg" message="true" property="differrentPasswords">
		<div class="alert alert-danger">
			<bean:write name="msg"/>
		</div>
	</html:messages>
	<html:messages id="msg" message="true" property="not_differrentPasswords">
		<div class="alert alert-danger">
			<bean:write name="msg"/>
		</div>
	</html:messages>

	<h3>
		<bean:message key="common.password.new.cofirm"/>
		<html:password property="againNewPassword"></html:password>
	</h3>

	<button type="submit" class="btn btn-success">
		<bean:message key="common.submit"/>
	</button>
</html:form>